﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using TrainSimulator.Interfaces;
using TrainSimulator.State;

namespace TrainSimulator.Model.Driver
{
    public class LocoDriver : ILocoDriver
    {
        private ITrain _train;

        public LocoDriver(ITrain train)
        {
            _train = train;
        }

        public void Start()
        {
            _train.CurrentState = StateFactory.TrainAccelerating;
            _train.CurrentState.Handle(_train);
        }

        public void Stop()
        {
            throw new NotImplementedException();
        }
    }
}
